<?php 
	include_once 'thuvienham.php';
	include_once 'hopdong_db.php';

	class hopdong_bs 
	{
		//------------------Fields [9]------------------
			// #0
		private $MaHopDong = -1;
		public function SetMaHopDong($MaHopDong) { $this->MaHopDong = $MaHopDong; }
		public function GetMaHopDong() { return $this->MaHopDong; }
			// #1
		private $MaGiaoVien = "";
		public function SetMaGiaoVien($MaGiaoVien) { $this->MaGiaoVien = $MaGiaoVien; }
		public function GetMaGiaoVien() { return $this->MaGiaoVien; }
			// #2
		private $MaLopHoc = "";
		public function SetMaLopHoc($MaLopHoc) { $this->MaLopHoc = $MaLopHoc; }
		public function GetMaLopHoc() { return $this->MaLopHoc; }
			// #3
		private $MaVaiTro = "";
		public function SetMaVaiTro($MaVaiTro) { $this->MaVaiTro = $MaVaiTro; }
		public function GetMaVaiTro() { return $this->MaVaiTro; }
			// #4
		private $LuongMoiTiet = -1;
		public function SetLuongMoiTiet($LuongMoiTiet) { $this->LuongMoiTiet = $LuongMoiTiet; }
		public function GetLuongMoiTiet() { return $this->LuongMoiTiet; }
			// #5
		private $TuNgay = "0000-00-00";
		public function SetTuNgay($TuNgay) { $this->TuNgay = $TuNgay; }
		public function GetTuNgay() { return $this->TuNgay; }
			// #6
		private $DenNgay = "0000-00-00";
		public function SetDenNgay($DenNgay) { $this->DenNgay = $DenNgay; }
		public function GetDenNgay() { return $this->DenNgay; }
			// #7
		private $NgayKy = "0000-00-00";
		public function SetNgayKy($NgayKy) { $this->NgayKy = $NgayKy; }
		public function GetNgayKy() { return $this->NgayKy; }
			// #8
		private $PIN = "";
		public function SetPIN($PIN) { $this->PIN = $PIN; }
		public function GetPIN() { return $this->PIN; }

		//------------------Method------------------
		public function Them()
		{
			$data = new hopdong_db();
			return $data->Them($this->MaHopDong, $this->MaGiaoVien, $this->MaLopHoc, $this->MaVaiTro, $this->LuongMoiTiet, $this->TuNgay, $this->DenNgay, $this->NgayKy, $this->PIN);
		}

		public function Xoa()
		{
			$data = new hopdong_db();
			return $data->Xoa($this->MaHopDong);
		}

		public function CapNhat()
		{
			$data = new hopdong_db();
			return $data->CapNhat($this->MaHopDong, $this->MaGiaoVien, $this->MaLopHoc, $this->MaVaiTro, $this->LuongMoiTiet, $this->TuNgay, $this->DenNgay, $this->NgayKy, $this->PIN);
		}

		public function LayDanhSach()
		{
			$data = new hopdong_db();
			return $data->LayDanhSach($this->MaHopDong, $this->MaGiaoVien, $this->MaLopHoc, $this->MaVaiTro, $this->LuongMoiTiet, $this->TuNgay, $this->DenNgay, $this->NgayKy, $this->PIN);
		}

	}

